//
//  HNSH_GoodsSpecModel.h
//  HNSH_SingleProject
//
//  Created by 李宇廷 on 2023/2/25.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface HNSH_GoodsSpecAttributeItem : NSObject
@property (nonatomic , copy) NSString              * uid;
@property (nonatomic , copy) NSString              * item;
@property (nonatomic , copy) NSString              * order_num;
/**  */
@property (nonatomic, assign)BOOL isSelected;
/**  */
@property (nonatomic, assign)CGFloat width;
@end

@interface HNSH_GoodsSpecAttributeListItem : NSObject
@property (nonatomic , copy) NSString              * uid;
@property (nonatomic , copy) NSString              * name;
@property (nonatomic , strong) NSArray <HNSH_GoodsSpecAttributeItem *>              * items;


@end

@interface HNSH_GoodsSpecListItem : NSObject

@property (nonatomic , copy) NSString              * uid;
@property (nonatomic , copy) NSString              * spec_key;
@property (nonatomic , copy) NSString              * spec_key_name;
@property (nonatomic , copy) NSString              * price;
@property (nonatomic , copy) NSString              * store_count;
@property (nonatomic , copy) NSString              * sales_count;
@property (nonatomic , copy) NSString              * bean_price;
@property (nonatomic , copy) NSString              * reward_amount;
@property (nonatomic , copy) NSString              * reward_integral;

@end

@interface HNSH_GoodsSpecModel : NSObject

@property (nonatomic , copy) NSString              * cover_url;
/**  */
@property (nonatomic , copy) NSString              * goods_type;
@property (nonatomic , strong) NSArray <HNSH_GoodsSpecListItem *>              * spec_list;
@property (nonatomic , strong) NSArray <HNSH_GoodsSpecAttributeListItem *>              * attribute_list;

/* currentItem */
@property (nonatomic, strong) HNSH_GoodsSpecListItem *currentItem;;

/** 通过所选择的规格查找到想要的规格 */
- (HNSH_GoodsSpecListItem *)getCurrentItemModel;

@end

NS_ASSUME_NONNULL_END
